package com.moduletwo.homework1;

/*
    实现Manager和Coder类测试

    作者：翁海龙
 */
public class ManagerCoderTest {

    public static void main(String[] args) {

        //setter方法进行赋值并打印
        Manager m1=new Manager();
        m1.setId(123);
        m1.setSalary(15000);
        m1.setBonus(6000);
        m1.setName("一龙");
        m1.work();

        Coder c1=new Coder();
        c1.setId(135);
        c1.setSalary(10000);
        c1.setName("方便");
        c1.work();
        System.out.println("-------------");
        //使用有参构造方法构造进行构造并打印
        Manager m2=new Manager(123,15000,6000,"一龙");
        m2.work();
        Coder c2=new Coder(135,10000,"方便");
        c2.work();








    }
}
